<?php namespace Common\Model;
use Hdphp\Model\Model;
class Goodsxx extends Model{
	protected $table="goodsxx";
	protected $validate=array(
//		array('picture','required','上传图册不能为空',3,3),
		array('aoods','maxlen:100','商品详情不能超过一百字',3,3),
	);
	protected $auto=array(
		array('picture','picture','method',3,3),	
	);
	
	
	
	
	public function store(){
		if($this->create()){
			return $this->add();
		}else{
			return false;
		}
	}
	
	
}

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
?>